/********************************************************************
	Rhapsody	: 7.5 
	Login		: KBE
	Component	: DefaultComponent 
	Configuration 	: CodeConfig
	Model Element	: StubSynchronousEventDemultiplexer
//!	Generated Date	: Wed, 19, Sep 2012  
	File Path	: DefaultComponent\CodeConfig\StubSynchronousEventDemultiplexer.cpp
*********************************************************************/

//## auto_generated
#include "StubSynchronousEventDemultiplexer.h"
//## package Default

//## class StubSynchronousEventDemultiplexer
StubSynchronousEventDemultiplexer::StubSynchronousEventDemultiplexer() : handle(0) {
    //#[ operation StubSynchronousEventDemultiplexer()
    handle = 0;
    //#]
}

StubSynchronousEventDemultiplexer::~StubSynchronousEventDemultiplexer() {
}

HANDLE StubSynchronousEventDemultiplexer::SimulateEvents() {
    //#[ operation SimulateEvents()
    if (handle == 4)
    	handle = 1;
    else 
    	handle++;
    return (HANDLE *)handle;
    
    //#]
}

int StubSynchronousEventDemultiplexer::getHandle() const {
    return handle;
}

void StubSynchronousEventDemultiplexer::setHandle(int p_handle) {
    handle = p_handle;
}

/*********************************************************************
	File Path	: DefaultComponent\CodeConfig\StubSynchronousEventDemultiplexer.cpp
*********************************************************************/
